package com.zj.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("reviews")
public class Reviews implements Serializable {
    @TableId(value = "reviewId")
    private Long reviewId; //评论ID
    @TableField(value = "userId")
    private Long userId; //用户ID
    @TableField(value = "productId")
    private Long productId; //商品ID
    @TableField(value = "rating")
    private Integer rating; //商品评分
    @TableField(value = "comment")
    private String comment; //评论内容
    @TableField(value = "reviewImages")
    private String reviewImages; //评价图片URL数组
    @TableField(value = "createdAt")
    private Date createdAt; //创建时间
}
